-- GENERATED SPELL FOR [Terrifying Abomination] --


function spell0_31098(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31098', 578, 1)
end

function spell1_31098(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31098', 1000, 1)
end

function Sorts_31098(pUnit, Event)
local choix_sorts_31098 = math.random(0, 1)
if choix_sorts_31098 == 0 then
pUnit:RegisterEvent('spell0_31098', 1, 1)
end
if choix_sorts_31098 == 1 then
pUnit:RegisterEvent('spell1_31098', 1, 1)
end
end

function mob31098_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31098', math.random(1500, 3000), 1)
end

function mob31098_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31098_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31098_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31098, 1, 'mob31098_Action')
RegisterUnitEvent(31098, 2, 'mob31098_Leave')
RegisterUnitEvent(31098, 3, 'mob31098_Kill')
RegisterUnitEvent(31098, 4, 'mob31098_Die')
